package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.BookingHotelApplicationMapper;
import com.wanmait.baohan.mapper.HotelApprovalMapper;
import com.wanmait.baohan.pojo.BookingHotelApplication;
import com.wanmait.baohan.pojo.HotelApproval;
import com.wanmait.baohan.service.HotelApprovalService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author 打豆豆
 * @version 1.0
 * @date 2021/1/3 16:41
 * @description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class HotelApprovalServiceImpl implements HotelApprovalService {

    @Resource
    private HotelApprovalMapper hotelApprovalMapper;
    @Resource
    BookingHotelApplicationMapper bookingHotelApplicationMapper;

    @Override
    public void insert(HotelApproval object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(HotelApproval object) {
        hotelApprovalMapper.updateByPrimaryKey(object);
    }

    @Override
    public HotelApproval findById(Integer id) {
        return hotelApprovalMapper.selectByBookingHotelApplicationId(id);
    }

    @Override
    public List<HotelApproval> findAll() {
        return null;
    }

    @Override
    public List<HotelApproval> findAll(HotelApproval object) {
        return null;
    }

    @Override
    public PageInfo<HotelApproval> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<HotelApproval> findPage() {
        return null;
    }

    @Override
    public PageInfo<HotelApproval> findPage(int pageNum, HotelApproval object) {
        return null;
    }

    @Override
    public PageInfo<HotelApproval> findPage(HotelApproval object) {
        return null;
    }


    @Override
    public void updatebyId(Integer id) {

    }
}
